﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace docExplorer
{
    public partial class uc_CategoryProperties : UserControl
    {
        public uc_CategoryProperties()
        {
            InitializeComponent();
        }

        public uc_CategoryProperties(string category, string template, string subCategories, string Docs, string created, string local)
        {
            InitializeComponent();
            this.lblCategory.Text = category;
            this.lblTemplate.Text = template;
            this.lblSubCategories.Text = subCategories;
            this.lblDocuments.Text = Docs;
            this.lblCreated.Text = created;
            this.lblLocal.Text = local;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            Globals.ThisAddIn.CustomTaskPanes.Remove(Globals.ThisAddIn.CategoryPropertiesCTP);
        }

        private void lblTemplate_Click(object sender, EventArgs e)
        {
            AddinUtils.OpenDocument(lblTemplate.Text);
        }
    }
}
